﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Pampa.WebControls;

namespace Pampa.MVC.Fluent.CustomControls
{
    public class FloatingWindowEndBuilder : IHtmlString 
    {
        private readonly FloatingWindow _floatingWindow;

        public FloatingWindowEndBuilder(FloatingWindow floatingWindow)
        {
            _floatingWindow = floatingWindow;
        }

        public string ToHtmlString()
        {
            var sb = new StringBuilder();
            sb.Append(_floatingWindow.RenderEndTag());

            return sb.ToString();
        }
    }
}
